package cn.cjxy.springboot_mybatis01.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Dept {
    private Integer id;
    private String name;
    private String location;
    //一个部门里边有多个员工
    private List<Emp> empList;

    public Dept(Integer id, String name, String location) {
        this.id = id;
        this.name = name;
        this.location = location;
    }
}
